//Count组件的展示组件
import React from 'react'

export default function Count(props) {
  return (
    <div>
      <p>{props.count}</p>
      <button
        onClick={() => {
          props.add(3)
        }}
      >
        +
      </button>
    </div>
  )
}
